import request from '@/utils/request'

// 查询房型下拉框数据列表
export function listHotelRoomMeta(query) {
  return request({
    url: '/logex/hotelRoomMeta/list',
    method: 'get',
    params: query
  })
}

// 查询房型下拉框数据详细
export function getHotelRoomMeta(id) {
  return request({
    url: '/logex/hotelRoomMeta/' + id,
    method: 'get'
  })
}

// 新增房型下拉框数据
export function addHotelRoomMeta(data) {
  return request({
    url: '/logex/hotelRoomMeta',
    method: 'post',
    data: data
  })
}

// 修改房型下拉框数据
export function updateHotelRoomMeta(data) {
  return request({
    url: '/logex/hotelRoomMeta',
    method: 'put',
    data: data
  })
}

// 删除房型下拉框数据
export function delHotelRoomMeta(id) {
  return request({
    url: '/logex/hotelRoomMeta/' + id,
    method: 'delete'
  })
}
